<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //去重
    var s=new Set([5,2,5,4,3,2,5,1])
    console.log([...s]);

    //结构
    function fn({name,age,sex}){
        console.log(name,age,sex);
    }
    var obj={name:'git',age:12,sex:'男'}
    fn(obj)
</script>